package com.ssmeasy.jdgl.dao;

import com.ssmeasy.jdgl.pojo.Room;
import com.ssmeasy.jdgl.pojo.RoomDetail;

import java.util.List;

public interface RoomMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Room record);

    Room selectByPrimaryKey(Integer id);

    List<Room> selectAll();

    int updateByPrimaryKey(Room record);


    /**
     * 通过房间状态查询房间列表
     *
     * @param status
     * @return
     */
    List<Room> selectByStatus(int status);

    /**
     * 查询房间详细信息
     *
     * @param id
     * @return
     */
    RoomDetail getRoomDetailById(int id);
}